home *** CD-ROM | disk | FTP | other *** search
/ Digitální fotografie a video / Digitalni-fotografie-a-video-covermount.bin / Aplikace / DF / Kap_2 / Df_2_4.dxr / 00008_Najezd obrazovka.ls < prev    next >
Encoding:
Text File  |  1998-05-19  |  1022 b   |  40 lines

  1. property MemberText
  2.  
  3. on getPropertyDescriptionList
  4.   set description to [:]
  5.   addProp(description, #MemberText, [#comment: "MemberText:", #format: #richText, #default: EMPTY])
  6.   return description
  7. end
  8.  
  9. on getBehaviorDescription
  10.   return "N├íjezd a klik"
  11. end
  12.  
  13. on beginSprite me
  14.   set the visible of sprite the spriteNum of me to 1
  15.   set the visible of sprite (the spriteNum of me + 1) to 0
  16.   set the visible of sprite (the spriteNum of me + 2) to 0
  17. end
  18.  
  19. on endSprite me
  20. end
  21.  
  22. on mouseEnter me
  23.   puppetSound(1, "Najezd_otazky")
  24.   set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
  25.   set the visible of sprite (the spriteNum of me + 1) to 1
  26.   set the visible of sprite (the spriteNum of me + 2) to 1
  27.   updateStage()
  28. end
  29.  
  30. on mouseLeave me
  31.   set the cursor of sprite the spriteNum of me to -1
  32.   set the visible of sprite (the spriteNum of me + 1) to 0
  33.   set the visible of sprite (the spriteNum of me + 2) to 0
  34. end
  35.  
  36. on mouseDown me
  37.   set the member of sprite 27 to MemberText
  38.   updateStage()
  39. end
  40.